import React, { Component } from "react";
import { Route } from "react-router-dom";
import App from "./App";

import Home from "./Home";
import About from "./About";
import Home1 from "./Home1";
import Home2 from "./Home2";

class Router extends Component {
  render() {
    return (
      <>
        <App>
          <Route path="/home">
            <Home>
              <Route path="/home/home1">
                <Home1 />
              </Route>
              <Route path="/home/home2">
                <Home2 />
              </Route>
            </Home>
          </Route>
          <Route path="/about">
            <About />
          </Route>
        </App>
      </>
    );
  }
}

export default Router;
